
package com.zbdx.service;

import com.zbdx.domain.User;

import java.sql.SQLException;
import java.util.List;

public interface UserService {
    User login(String usernmae, String password) throws SQLException;
    boolean register(User user) throws SQLException;

    boolean userExists(String username) throws SQLException;

    User findUserByUsername(String username);
    boolean updateUserInfo(User user);

    //修改
    boolean addUser(User user) throws SQLException;

    boolean deleteById(Integer id) throws SQLException;

    boolean update(User user) throws SQLException;
    boolean bathDeleteUser(List<Integer> ids) throws SQLException;

    User selectById(int id) throws SQLException;

    List<User> findAll() throws SQLException;

    List<User> findBysearch(String name) throws SQLException;


}


